#pragma once 
#include <unistd.h>
#include <iostream>
#include <functional>
#include "log.hpp"
using namespace logModule;

using task_t  = std::function<void(std::string name)>;

void push (std::string name)
{
    int cnt = 10;
    while (cnt--)
    {
        LOG(logLevel::debug) << "我是一个推送那个数据到服务器的任务，现在" <<
    "正在被执行" << " [" << name << "]";
        sleep(1);
    }
}